import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class 集合转换 {
    public static void main(String[] args) {
        String[]strings={"aa","bb","cc"};//引用可以和list互相转换
        List<String> list= Arrays.stream(strings).collect(Collectors.toList());
        List<List<String>> lists = Arrays.asList(list);//这种不能
        Object[] objects = lists.toArray();//list-->arr
    }
}
